<extend name="Public:base" />
 <block name="header">
  <div id="content-header">
    <div id="breadcrumb"> <a href="{:U('Index/index')}" title="回到首页" class="tip-bottom"><i class="icon-home"></i> 首页</a> <a href="#" class="current">系统角色管理</a> </div>
    <h1>系统角色管理</h1>
  </div>
 </block>
<block name="content">

<div class="quick-actions_homepage">
    <ul class="quick-actions">
      <li class="bg_lb"> <a href="#" onclick="showWindow('添加新角色','{:U('AuthGroup/add')}',500,250);" > <i class="icon-plus"></i> 添加新角色 </a> </li>
    </ul>
</div>

<div class="row-fluid">
  <div class="span12">
    <div class="widget-box">
      
	 <div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
          <h5>系统角色</h5>
          </div>
          <div class="widget-content nopadding">
            <table class="table table-bordered table-striped">
              <thead>
                <tr>
                  <th>ID</th>
                  <th>角色名称</th>
                  <th>启用状态</th>
                  <th>添加时间</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              <volist name="list" id="vo">
                 <tr>
                  <td>{$vo['id']}</td>
                  <td>{$vo['title']}</td>
                  <td><eq name="vo['status']" value="1"><span class="label label-success">启用</span><else/><span class="label">禁用</span></eq></td>
                  <td>{$vo['addtime']|toDate='Y-m-d H:i'}</td>
                  <td>
                  	<div class="fr">
                  		<a href="#" onclick="showWindow('编辑角色','{:U('AuthGroup/edit',array('id'=>$vo['id']))}',500,250);" class="btn btn-primary btn-mini">编辑</a>
                  		<a href="#" onclick="showConfirm('{:U('AuthGroup/foreverdelete',array('id'=>$vo['id']))}');" class="btn btn-danger btn-mini">删除</a></div>
                  	</div>
                  </td>
                </tr>
                </volist>
              </tbody>
            </table>

          </div>
          <div class="pagination">{$page}</div>
        </div>

    </div>
  </div>
</div>

</block>

<block name="pagescript">
<script type="text/javascript" src="__PUBLIC__/layer/public.js"></script>
</block>